package mysqlInit

import (
	"0507zk/common/initialize"
	"fmt"
)

func MysqlInit() {
	err := initialize.DB.AutoMigrate(&User{}, &Product{})
	if err != nil {
		fmt.Println("数据迁移失败")
		return
	}
	fmt.Println("数据迁移成功")
}
